<script>
    $(function() {
        $("a").button();
        $("a").click(function() { return true; });
    });
</script>
<div style="width: 100%;height: 100%;background-color: #222222" align="center">
<div style="width: 80%;height: 100%;background-color:#eeeeee" align="center" class="ui-widget ui-corner-all">
<div style="width: 100%;padding: 10px" align="left"><a href="<?php echo url::base()?>/admin/ipcamera">กลับ</a></div>
    <br>
<form method="post" action="<?php URL::base()?>ipcamera_edit" target="">
        <table width="500" class="ui-widget ui-widget-content ui-corner-all" >
            <thead><tr class="ui-widget-header"><td colspan="5">แก้ไขข้อมูล</td></tr></thead>
            <tbody align="left">
                <tr><td valign="top" style="padding-left: 10px">ชื่อ</td><td><input name="pp_name" type="text" value="<?php echo isset($place['pp_name'])?$place['pp_name']:"" ?>"> </td></tr>
                <tr><td valign="top" style="padding-left: 10px">IP Address</td><td><input type="text" id="pp_url" name="pp_url" value="<?php echo isset($place['pp_url'])?$place['pp_url']:""?>"> </td></tr>
                <tr><td valign="top" style="padding-left: 10px">Username</td><td><input type="text" id="pp_username" name="pp_username" value="<?php echo isset($place['pp_username'])?$place['pp_username']:"" ?>"> </td></tr>
                <tr><td valign="top" style="padding-left: 10px">Password</td><td><input type="text" id="pp_password" name="pp_password" value="<?php echo isset($place['pp_password'])?$place['pp_password']:"" ?>"> </td></tr>
                <tr><td valign="top" style="padding-left: 10px">รายละเอียด</td><td><textarea rows="3" cols="20" id="pp_description" name="pp_description" ><?php echo isset($place['pp_description'])?$place['pp_description']:"" ?></textarea> </td></tr>
                <tr><td align="center" colspan="2"><input class="ui-button ui-widget ui-state-default ui-corner-all" type="submit" value="แก้ไข">                       
                    </td></tr>
                <tr><td colspan="8" align="left" style="color: blue"><?php echo $message ?></td></tr>
            </tbody>
        </table>
        <input type="hidden" value="<?php echo $pp_id ?>" name="pp_id" id="pp_id">
        <input type="hidden" value="edit" name="method">
    </form>
</div></div>
